/**
 *  针对AliYun 分组管理API请求
 *  https://help.aliyun.com/document_detail/69893.html?spm=a2c4g.11186623.6.736.5fcd342dh5UEoS
 *
 *  @Date 2020-04-27
 **/

import { aliyunApi } from '../../utils/aliyunHttp.js';

const app = getApp();

let groupApi = {

    /**
     * 分页查询分组列表
     *
     * @param {Object} param 请求参数
     * {
     *      DeviceName: xxxx,
     *      Nickname: xxxx
     * }
     **/
    queryDeviceGroupList(param = {}) {
        let opts = {
            data: {
                ...param,
                Action: 'QueryDeviceGroupList',
            }
        };
        return aliyunApi.get(opts);
    },
};

export { groupApi };
